<template></template>
<script lang='ts'>
import { useRouter } from "vue-router";
import { defineComponent } from "vue";
export default defineComponent({
  setup() {
    const router = useRouter();
    const { params, query } = router.currentRoute.value;
    const { path } = params;
    router.replace({ path: "/" + path, query });
    return {};
  },
});
</script>